package com.sjgtw.cloud.web.freeze.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sjgtw.cloud.common.core.annotation.Excel;
import com.sjgtw.cloud.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 冻害-恢复情况对象 t_eg_freeze_restore
 * 
 * @author lvyoufang
 * @date 2024-03-17
 */
@ApiModel(value="冻害-恢复情况对象", description="t_eg_freeze_restore")
public class FreezeRestore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 冻害id */
    @ApiModelProperty(value = "冻害id")
    @Excel(name = "冻害id")
    private Long freezeId;

    /** 日期 */
    @ApiModelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date restoreTime;

    /** 里程 */
    @ApiModelProperty(value = "里程")
    @Excel(name = "里程")
    private String mileage;

    /** 长度 */
    @ApiModelProperty(value = "长度")
    @Excel(name = "长度")
    private String length;

    /** 创建人id */
    @ApiModelProperty(value = "创建人id")
    @Excel(name = "创建人id")
    private Long createUserId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFreezeId(Long freezeId) 
    {
        this.freezeId = freezeId;
    }

    public Long getFreezeId() 
    {
        return freezeId;
    }
    public void setRestoreTime(Date restoreTime) 
    {
        this.restoreTime = restoreTime;
    }

    public Date getRestoreTime() 
    {
        return restoreTime;
    }
    public void setMileage(String mileage) 
    {
        this.mileage = mileage;
    }

    public String getMileage() 
    {
        return mileage;
    }
    public void setLength(String length) 
    {
        this.length = length;
    }

    public String getLength() 
    {
        return length;
    }
    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("freezeId", getFreezeId())
            .append("restoreTime", getRestoreTime())
            .append("mileage", getMileage())
            .append("length", getLength())
            .append("remark", getRemark())
            .append("createUserId", getCreateUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
